package com.bops.service;

import java.util.List;

import com.bops.dal.product.dao.CloudDAO;
import com.bops.dal.product.dataobject.CloudDO;
import com.bops.dal.product.queryobject.CloudQuery;

public class CloudService {

	CloudDAO cloudDAO;	
	
    public Integer insert(CloudDO cloudDO){
    	return cloudDAO.insert(cloudDO);
    }

    public boolean update(CloudDO cloudDO){
    	return cloudDAO.update(cloudDO);
    }

    /**
     * 检查更新
     * 
     * @param cloudDO
     * @return
     */

    public  CloudDO getById(Integer id){
    	return cloudDAO.getById(id);
    }

    public List<CloudDO> listCloud(CloudQuery query){
    	return cloudDAO.listCloud(query);
    }

    public boolean delete(Integer id){
    	return cloudDAO.delete(id);
    }
    
    public int checkCloud(CloudDO editCloud){
    	return cloudDAO.checkCloud(editCloud);
    }

	public void setCloudDAO(CloudDAO cloudDAO) {
		this.cloudDAO = cloudDAO;
	}
}
